<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>条件渲染</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<div id="root">
    <h1>条件渲染学习</h1>
    <div v-if="number==1">
        <h1>当前匹配number==1</h1>
    </div>
    <div v-else-if="number==2">
        <h1>当前匹配number==2</h1>
    </div>
    <div v-else>
        <h1>无匹配模块</h1>
    </div>
</div>
</body>
<script type="application/javascript">
    new Vue({
        el: '#root',
        data:{
            awesome: true,
            number: 1
        }
    })
</script>
</html>
